# SPDX-FileCopyrightText: Copyright 2022-2024 深圳市同心圆网络有限公司
# SPDX-License-Identifier: GPL-3.0-only

tags:
  - connection
summary: 列出SSH连接
description: 列出SSH连接
operationId: "{{ uniqueOpId() }}"
requestBody:
  content:
    application/json:
      schema:
        type: object
        properties:
          token:
            type: string
            description: 访问令牌
responses:
  "200":
    description: 成功
    content:
      application/json:
        schema:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
                description: 连接ID
              name:
                type: string
                description: 连接名称
              authList:
                type: array
                description: 验证信息
                items:
                  type: object
                  properties:
                    username:
                      type: string
                      description: 用户名
                    addr:
                      type: string
                      description: 连接地址
  "500":
    description: 失败
    content:
      application/json:
        schema:
          $ref: "@schemas/errInfo.yml.njk"
